package cn.lingyangwl.agile.msg.push.api.model.rqrs;

import cn.lingyangwl.framework.validation.group.UpdateGroup;
import cn.lingyangwl.agile.model.constants.ValidationCons;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 消息渠道定义
 *
 * @author shenguangyang
 */
@Getter
@Setter
public class MsgChannelReq {
    @NotNull(message = "不能为空", groups = UpdateGroup.class)
	private Long id;
	
	/**
	 * 渠道参数定义名称
	 */
	@NotEmpty(message = ValidationCons.NOT_EMPTY)
	private String name;

	/**
	 * 渠道编码
	 */
	@NotEmpty(message = ValidationCons.NOT_EMPTY)
	private String channelCode;

	/**
	 * 是否为系统内置, 系统内置的不能被删除
	 */
	private Boolean sysBuiltIn;
	
	/**
	 * 渠道参数定义
	 */
	private String paramDefine;

	/**
	 * 参数配置
	 */
	private String paramConfig;

	/**
	 * 消息模板类型编码
	 */
	@NotEmpty(message = ValidationCons.NOT_EMPTY)
	private String tplTypeCode;

	/**
	 * 配置页面类型
	 */
	@NotEmpty(message = ValidationCons.NOT_EMPTY)
	private String configPageType;

	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	private String remark;

	/**
	 * 状态(1-启用, 0-禁用)
	 */
	private String status;
}
